package objetsBd;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author verpoorten
 */
@Entity
@Table(name = "Index")
public class IndexBd implements Serializable {

    private static final long serialVersionUID = 1L;
    private static final String SEQ_ID = "idIndex_sequence";
    @Id
    @Column(name = "idIndex")
    @SequenceGenerator(name = SEQ_ID,
            sequenceName = SEQ_ID, allocationSize = 1)
    @GeneratedValue(generator = SEQ_ID)
    private Long idIndex;
    @Column(name = "montantIndex")
    private Double montantIndex;
    @Column(name = "dateDeModif")
    @Temporal(TemporalType.DATE)
    private Date dateDeModif;

    public Long getIdIndex() {
        return idIndex;
    }

    public void setIdIndex(Long idIndex) {
        this.idIndex = idIndex;
    }

    public Double getMontantIndex() {
        return montantIndex;
    }

    public void setMontantIndex(Double montantIndex) {
        this.montantIndex = montantIndex;
    }

    public Date getDateDeModif() {
        return dateDeModif;
    }

    public void setDateDeModif(Date dateDeModif) {
        this.dateDeModif = dateDeModif;
    }
}
